<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>学习布局</title>
    <style>
        body {
            margin: 0px;
        }

        * {
            padding: 0;
            margin: 0;
        }

        .header {
            width: 100%;
            height: 50px;
            position: relative;
        }

        .header ul {
            position: absolute;
            right: 50px;
            bottom: 10px;
        }

        .header ul li {
            display: inline-block;
        }

        .header ul li a {
            text-decoration-line: none;
        }

        .header img {
            margin-left: 200px;
        }

        .navBar {
            width: 100%;
            background-color: brown;
            height: 200px;
            position: relative;
        }

        .navBar ul {

            position: absolute;
            right: 50px;
            bottom: 10px;

        }

        ul,
        li {
            padding: 0;
            margin: 0;
            list-style: none
        }

        .navBar ul li {

            display: inline;

        }

        .navBar ul li a {
            text-decoration-line: none;
            color: #ffffff;
            border: 1px solid #ffffff;
            padding: 6px;
            margin: 4px;
        }

        .navBar ul li a:hover {
            padding-top: 10px;
            padding-right: 6px;
            padding-bottom: 6px;
            padding-left: 6px;
            margin: 4px;
        }

        .navbar2 ul {
            margin: 50px;
            font-size: 0;


        }

        .navbar2 ul>li {
            display: inline-block;
            font-size: 14px;


        }

        .navbar2 ul li a {
            text-decoration-line: none;
            color: black;
            border: 1px solid gainsboro;
            border-radius: 30%;
            padding: 15px 16px;

            background-color: #ffffff;

        }

        .navbar2 ul li a:hover {
            padding-top: 20px;
            padding-right: 16px;
            padding-bottom: 15px;
            padding-left: 16px;
            background-color: gainsboro;

        }

        .line {
            border: 1px solid gainsboro;
            border-bottom: none;
            margin-top: -50px;
        }

        .content {
            display: flex;

        }

        .contentM {
            border: 1px solid salmon;
            height: 200px;
            width: 300px;
            margin: 20px 30px;
            padding-top:90px;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            box-sizing: border-box;
            text-align: center;

        }

        

        .massage {
            width: 960px;
            margin: 0 auto;
        }

        .foot {
            background-color: salmon;
            height: 60px;
        }

        .foot p {
            text-align: center;
            color: #ffffff;
            padding-top: 5px;
        }
    </style>
</head>

<body>
    <div class="header">
        <img src="egg.png" alt="蛋蛋">
        <ul>
            <li>
                <a href="https://github.com/Huanghaiting/homework/tree/master/0708">GitHub</a>
            </li>
            <li>
                <a href="#">Register</a>
            </li>
            <li>
                <a href="#">login</a>
            </li>

        </ul>
    </div>
    <nav class="navBar">
        <ul>
            <li>
                <a href="#">1</a>
            </li>
            <li>
                <a href="#">2</a>
            </li>
            <li>
                <a href="#">3</a>
            </li>
            <li>
                <a href="#">4</a>
            </li>
        </ul>
    </nav>
    <div class="massage">
        <div class="navbar2">
            <ul>
                <li>
                    <a href="#">home</a>
                </li>
                <li>
                    <a href="#">profile</a>
                </li>
                <li>
                    <a href="#">about</a>
                </li>
            </ul>
            <div class="line"></div>
        </div>
        <div class="content">
            <div class="contentM">
                <p>this is content one</p>
            </div>
            <div class="contentM">
                <p>this is content two</p>
            </div>
            <div class="contentM">
                <p>this is content three</p>
            </div>
        </div>
        <div class="content">
            <div class="contentM">
                <p>this is content one</p>
            </div>
            <div class="contentM">
                <p>this is content two</p>
            </div>
            <div class="contentM">
                <p>this is content three</p>
            </div>
            <div class="contentM">
                <p>this is content four</p>
            </div>
        </div>
        <div class="content">
            <div class="contentM">
                <p>this is content one</p>
            </div>
            <div class="contentM">
                <p>this is content two</p>
            </div>
            <div class="contentM">
                <p>this is content three</p>
            </div>
        </div>
    </div>
    <footer class="foot">

        <p>written by HuangHaiting</p>
    </footer>
</body>

</html>